export default {
    install: (app:any, options:any) =>{
        app.config.globalProperties.$translate =(key:String)=>{
            return key.split('.').reduce((o:any,i:any):any=>{
                if(o) return o[i]
            }, options)
        }
    }
}